home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 592 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.0 KB

  1. Path: news.primenet.com!not-for-mail
  2. From: bri@primenet.com (Brian Gregory)
  3. Newsgroups: comp.std.c
  4. Subject: BoundsChecker and fgets fmalloc problems
  5. Date: 18 Mar 1996 12:48:01 -0700
  6. Organization: Primenet Services for the Internet
  7. Sender: root@primenet.com
  8. Message-ID: <4ikelh$gji@nnrp1.news.primenet.com>
  9. X-Posted-By: ip16-021.phx.primenet.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. I am using Bounds Checker v2.5, and am having a problem finding a
  13. memory leak it is reporting...
  14.  
  15. Example:
  16.  
  17. fgets( szBuf, 799, fpIn );
  18.  
  19. szBuf is an 800 character buffer (pre-sized array)
  20. fpIn IS a valid pointer
  21. no memory is corrupt before the fgets line
  22. The application is a windows app, written in straight C with a large
  23. memory model.
  24.  
  25. The problem is Boundschecker consistently reports memory leaks for the
  26. larger buffer size mallocs contained WITHIN the fgets function...
  27.  
  28. Any help on resolving this recurrent problem, or just an indication
  29. that this is perhaps an erroneous error reported by Boundschecker
  30. would be greatly appreciated.
  31.  
  32. Thanks, 
  33. Brian Gregory
  34. bri@primenet.com
  35.  
  36.  
  37.  
  38.